import ajax from '@/utils/request'
import { concatUrl } from '@/utils'

export function getGoodsDistribution(data: object, fields: string | object = { fields: '*' }) {
    return ajax({
        url: concatUrl('/v1/goods/goods-distribution/view', fields),
        data
    })
}
 
// 判断门店是否参与分销
export function checkIsCouldDistribution(data: object, fields: string | object = { fields: '*' }) {
    return ajax({
        url: concatUrl('/v1/goods/goods-distribution/check-is-could-distribution', fields),
        data
    })
}

// 获取用户分销信息
export function getGoodsDistributionInfo(data: object, fields: string | object = { fields: '*' }) {
    return ajax({
        url: concatUrl('/v1/goods/goods-distribution/info', fields),
        data
    })
}

// 获取分销列表
export function getGoodsDistributionIndex(data: object, fields: string | object = { fields: '*' }) {
    return ajax({
        url: concatUrl('/v1/goods/goods-distribution/index', fields),
        data
    })
}
 
  
